
#ifndef _MEMBER_BGROUPITEM_H_
#define _MEMBER_BGROUPITEM_H_

#include <BFont>
#include <BIcon>
#include <BImage>
#include <BGraphicWidget>
#include <BGroupItem>
#include "IRound.h"
#include "IAlignment.h"

namespace BWE
{
	class member_BGroupItem : public IAlignmentf
	{
		friend class BGroupItem;
	public:
		member_BGroupItem(BGroupItem* labelItem);
		~member_BGroupItem();

		void freshRects(const BStyle* style);

		BGroupItem*		boss;
		BString			title;
		BIconHolder		icon;
		bool			titleVisible;
		BMarginf		titleMargin;
		int				titleSpace;
		int				titleHeight;
		bool			flat;
		bool			wired;
		BSize			iconSize;
		bool			checkable;
		bool			checked;
		bool			folded;
		float			wireSize;
		bool			autoTop;
		bool			autoLeft;
		bool			autoRight;
		bool			autoBottom;

		bool			dirty;
		State			state;
		BString			t_title;
		BRectf			titleArea;
		BSizef			centerSize;
		BPerchf			backupPerch;
		BMarginf		backupMargin;
		BPointfArray	wirePoints;

	};
}

#endif
